package com.migo.service;

import com.migo.entity.FirmwareEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author powervision
 * @email wes.wang@powervision.me
 * @date 2018-12-25 10:01:01
 */
public interface FirmwareService {
	
	FirmwareEntity queryObject(Integer id);
	
	List<FirmwareEntity> queryList(Map<String, Object> map);

	List<FirmwareEntity> queryFirmwareList(Map<String, String> map);

	List<FirmwareEntity> queryModelList(Map<String, String> map);


	List<Map<String, Object>> queryFirmwareMap(Map<String, String> map);


	List<FirmwareEntity> queryFirmwareObjects(Map<String, String> map);

	String  queryVersionTime(Map<String, String> map);

	List<Map<String, Object>> queryNextVersionList(Map<String, String> map);

	List<Map<String, Object>>  queryMaxVersionList(Map<String, String> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(FirmwareEntity firmware);
	
	void update(FirmwareEntity firmware);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);
}
